import { http } from '@/utils/http'

export const getflow = (id) => {
  return http({
    url: `/workflow/todo/rollback-workitems/${id}`,
    method: 'get',
  })
}

//生产领料中回退接口
export function requisitionForProduction(id,data) {
  return http({
    url: `/api/raw-material/pick-requirements/${id}/workflow/rollback`,
    method: "post",
    data
  });
}
//退库确认中回退接口
export function ReturnrollbackConfirmation(id,data) {
  return http({
    url: `/api/raw-material/return-orders/${id}/workflow/rollback`,
    method: "post",
    data
  });
}